//
//  GCDTimer.h
//  MyFunctionDemo
//
//  Created by Ting Han on 2017/8/28.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import <Foundation/Foundation.h>
@class GCDQueue;

@interface GCDTimer : NSObject

@property (nonatomic,strong) dispatch_source_t timer;

- (instancetype)initWithQueue:(GCDQueue *)queue;

- (void)execute: (dispatch_block_t)block interval: (NSTimeInterval)interval;
- (void)execute: (dispatch_block_t)block interval: (NSTimeInterval)interval delay: (NSTimeInterval)delay;
//开始
- (void)resume;
//停止
- (void)stop;
//暂停
- (void)suspend;

@end
